package com.tulele.vtool.mapper;

import com.tulele.vtool.model.UserBargainActivityInfo;
import org.springframework.stereotype.Component;

@Component(value = "userBargainActivityInfoMapper")
public interface UserBargainActivityInfoMapper {

    /**
     * 添加用户砍价活动信息
     * @param userBargainActivityInfo
     * @return
     */
    int addUserBargainActivityInfo(UserBargainActivityInfo userBargainActivityInfo);

    /**
     * 更新用户砍价活动信息
     * @param userBargainActivityInfo
     * @return
     */
    int updateUserBargainActivityInfo(UserBargainActivityInfo userBargainActivityInfo);

    /**
     * 查询用户砍价活动信息
     * @param bargainActId
     * @return
     */
    UserBargainActivityInfo queryUserBargainActInfo(Integer bargainActId);
}